const axios = require("axios");

// 设置自定义请求头，模拟 Edge 浏览器发送的请求头信息
const headers = {
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',
  'X-Forwarded-For': '125.66.243.251',
  'X-Forwarded-Proto': 'http',
  'X-Original-Host': '3de474c2.r21.cpolar.top',
  'X-Real-Ip': '125.66.243.251',
};

axios.get('http://127.0.0.1:1145', {
  params: {
    id: '01'
  },
  headers: headers // 将自定义请求头添加到请求中
})
.then(response => {
  console.log("成功",response.data); // 打印返回的数据
})
.catch(error => {
  console.error(error);
});